﻿<%@ Register TagPrefix="ucCommon" TagName="Common" Src="../Common/Inc/Common.ascx" %>
<%@ Register TagPrefix="ucTabTitle" TagName="TabTitle" Src="../Common/Inc/TabTitle.ascx" %>
<%@ Register TagPrefix="ucCopyright" TagName="Copyright" Src="../Common/Inc/Copyright.ascx" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Com3011p.aspx.cs" Inherits="Updms.Com.Com3011p" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>▒ UPDMS [Com3011p] ▒▒▒▒▒▒▒▒▒▒</title>
<ucCommon:Common id="Common" runat="server"></ucCommon:Common>
</head>
<body>
<form id="form1" defaultfocus="txt_pw" runat="server">
<table id="table_frame" runat="server">
	<tr>
		<td id="contents_area">
			<!-- 제목 시작 -->
			<ucTabTitle:TabTitle id="TabTitle" TagPrefixs="Com3011p" runat="server"></ucTabTitle:TabTitle>
			<!-- 제목 끝 -->
			<!-- 버튼 시작 -->
			<div class="button_area">
				<asp:linkbutton id="ibtn_close" Text="닫기" runat="server" CssClass="ibtn ibtn_close" OnClientClick="javascript:window.close();return false;"></asp:linkbutton>
				<asp:linkbutton id="ibtn_save" Text="저장" runat="server" CssClass="ibtn ibtn_save" OnClientClick="return chkSave()" OnClick="ibtn_save_Click"></asp:linkbutton>
			</div>
			<!-- 버튼 끝 -->
			<!-- 검색 시작 -->
			<table class="table_search">
				<tr>
					<td class="lbl" width="11%"><asp:Literal ID="ltr_user_id" Text="아이디" runat="server" /></td>
					<td class="ctl" width="22%"><asp:textbox id="txt_user_id" runat="server" CssClass="ib_b" ReadOnly="True" Width="96%"></asp:textbox></td>
					<td class="ctl" width="66%"></td>
				</tr>
			</table>
			<!-- 검색 끝 -->
			<!-- 디테일1 시작 -->
			<table class="table_detail">
				<tr>
					<td class="lbl" width="11%"><asp:Literal ID="ltr_pw" Text="비밀번호" runat="server" /></td>
					<td class="ctl" width="22%"><asp:textbox id="txt_pw" runat="server" CssClass="ib_b" Width="96%" TextMode="Password"></asp:textbox></td>
					<td class="lbl" width="11%"><asp:Literal ID="ltr_new_pw" Text="변경비번" runat="server" /></td>
					<td class="ctl" width="22%"><asp:textbox id="txt_new_pw" runat="server" CssClass="ib_b" Width="96.4%" TextMode="Password"></asp:textbox></td>
					<td class="lbl" width="11%"><asp:Literal ID="ltr_new_pw_confirm" Text="비번확인" runat="server" /></td>
					<td class="ctl" width="22%"><asp:textbox id="txt_new_pw_confirm" runat="server" CssClass="ib_b" Width="96.2%" TextMode="Password"></asp:textbox></td>
				</tr>
			</table>
			<!-- 디테일1 끝 -->
			<!-- 리스트셋 시작 -->
			<!-- 리스트셋 끝 -->
			<!-- 카피라이트 시작 -->
			<ucCopyright:Copyright id="Copyright" runat="server"></ucCopyright:Copyright>
			<!-- 카피라이트 끝 -->
			<!-- 히든값 시작 -->
			<div id="hdn_data">
			<asp:label id="lbl_pk" runat="server"></asp:label>
			<asp:Label id="lbl_search_flag" runat="server"></asp:Label>
			</div>
			<!-- 히든값 끝 -->
		</td>
	</tr>	
</table>
</form>
<script type="text/javascript" language="javascript" defer="defer">
	//저장
	function chkSave() {
		if ($F("txt_pw").blank()) {
			msgBox.alert(getMsg(MSG_ERR_026), setFocus, "txt_pw"); //기존 비밀번호를 입력해 주세요
			return false;
		}
		if ($F("txt_new_pw").blank()) {
			msgBox.alert(getMsg(MSG_ERR_027), setFocus, "txt_new_pw"); //변경할 비밀번호를 입력해 주세요
			return false;
		}
		if ($F("txt_new_pw_confirm").blank()) {
			msgBox.alert(getMsg(MSG_ERR_027), setFocus, "txt_new_pw_confirm"); //변경할 비밀번호를 입력해 주세요
			return false;
		}
		if ($F("txt_new_pw") != $F("txt_new_pw_confirm")) {
			msgBox.alert(getMsg(MSG_ERR_028)); //변경비번과 비번확인이 일치하지 않습니다
			return false;
		}
		
		msgBox.confirm(getMsg(MSG_CFM_010), doSave);	//변경하시겠습니까?
		return false;
	}
	
</script>
</body>
</html>